<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnModuleCodeInDelayOrderTable extends AbstractMigration
{
    public function up()
    {
        $this->table('delay_order')
            ->addColumn('module_code', 'string', [
                'null' => false,
                'default' => '',
                'limit' => 20,
                'comment' => '模块code',
            ])->save();
    }

    public function down()
    {
        $this->table('delay_order')
            ->removeColumn('module_code')
            ->save();
    }
}
